import http from '/@/serve/index';

/**
 * 获取变异信息比较结果
 * @param taskId 任务id
 * @param barcodeId
 * @returns
 */
export const getComparison = (taskId: string, barcodeId: string) =>
  http.get(`/tasks/${taskId}/barcodes/${barcodeId}/comparison`);

/**
 * 变异信息比较
 * @param taskId 任务id
 * @param barcodeId
 * @returns
 */
export const createComparison = (taskId: string, barcodeId: string, data: { upload: string, selected?: Array<string> }) =>
  http.post(`/tasks/${taskId}/barcodes/${barcodeId}/comparison`, data);
